]> dgit.raspbian.org Git - gnome-shell.git/commit
st/theme-node-drawing: Render box-shadow independently of background-color
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 27 May 2021 09:12:15 +0000 (17:12 +0800)
committerMarge Bot <marge-bot@gnome.org>
Wed, 30 Jun 2021 12:28:08 +0000 (12:28 +0000)
commit67217109328baea326d107cb6e73aeacffdbbcaf
tree56a905a1e68cf2fe54244e2e78215c19fbadfd93
parent82450e1060dcece25430b008e63fab21cccbde66
st/theme-node-drawing: Render box-shadow independently of background-color

Until now, the absence of a `background-color` would cause `box-shadow`s
to be invisible. That was a bug because `box-shadow` is meant to be either
the color specified in `box-shadow`, or if none was specified then the
foreground `color`.

There is nothing in the spec that says the `box-shadow` rendering should
depend on `background-color`, so separate them. This ensures `box-shadow`
is rendered even when `background-color` is absent or transparent.

https://www.w3.org/TR/css-backgrounds-3/#box-shadow

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1904>
src/st/st-theme-node-drawing.c